package com.ld.caodan.entity;


/**
 *
 *
 * @author 刘笛
 * 2011-10-31  下午03:01:28
 */
public enum CaoDanTypeEnum{
    	首页(CaoDanUrl.HOMEPAGE){
	    @Override
	    public ICaodan<Article> getCaoDanArtile(int page) {
		return new CaoDan(CaoDanUrl.HOMEPAGE+"list_1_"+page+".html");
	    }
	}
	,爱情(CaoDanUrl.AIQING){
	    @Override
	    public ICaodan<Article> getCaoDanArtile(int page) {
		return new CaoDan(CaoDanUrl.AIQING+"list_2_"+page+".html");
	    }
	}
	,钱(CaoDanUrl.QIAN){
	    @Override
	    public ICaodan<Article> getCaoDanArtile(int page) {
		return new CaoDan(CaoDanUrl.QIAN+"list_3_"+page+".html");
	    }
	}
	,工作(CaoDanUrl.GONGZUO){
	    @Override
	    public ICaodan<Article> getCaoDanArtile(int page) {
		return new CaoDan(CaoDanUrl.GONGZUO+"list_4_"+page+".html");
	    }
	}
	,家庭(CaoDanUrl.JIATING){
	    @Override
	    public ICaodan<Article> getCaoDanArtile(int page) {
		return new CaoDan(CaoDanUrl.JIATING+"list_5_"+page+".html");
	    }
	}
	,学校(CaoDanUrl.XUEXIAO){
	    @Override
	    public ICaodan<Article> getCaoDanArtile(int page) {
		return new CaoDan(CaoDanUrl.XUEXIAO+"list_6_"+page+".html");
	    }
	}
	,性(CaoDanUrl.XING){
	    @Override
	    public ICaodan<Article> getCaoDanArtile(int page) {
		return new CaoDan(CaoDanUrl.XING+"list_7_"+page+".html");
	    }
	}
	,小孩(CaoDanUrl.XIAOHAI){
	    @Override
	    public ICaodan<Article> getCaoDanArtile(int page) {
		return new CaoDan(CaoDanUrl.XIAOHAI+"list_10_"+page+".html");
	    }
	}
	,健康(CaoDanUrl.JIANKANG){
	    @Override
	    public ICaodan<Article> getCaoDanArtile(int page) {
		return new CaoDan(CaoDanUrl.JIANKANG+"list_8_"+page+".html");
	    }
	},
	乱七八糟(CaoDanUrl.LUANQIBAZAO){
	    @Override
	    public ICaodan<Article> getCaoDanArtile(int page) {
		return new CaoDan(CaoDanUrl.LUANQIBAZAO+"list_9_"+page+".html");
	    }
	};
	String str;
	
	CaoDanTypeEnum(String str) {
	    this.str = str;
	}
	@Override
	public String toString() {
	    return str;
	}
	public abstract ICaodan<Article> getCaoDanArtile(int page);
	
}